﻿<div class = "col-sm-offset-1 col-sm-10">
	<table class="table table-bordered">
		<tr>
			<th>ID</th>
			<th>标题</th>
			<th>创建时间</th>
			<th>创建人</th>
			<th>回复次数</th>
		</tr>
		<?php
			foreach($res as $row){
				echo "<tr>";
				echo "<td>".$row['id']."</td>";
				echo "<td>".$row['title']."</td>";
				echo "<td>".$row['time']."</td>";
				echo "<td>".$row['aurthor']."</td>";
				echo "<td>15</td>";
				echo "</tr>";
			}
		?>
	</table>
		<div border = "1">
			<span class = "text-info col-sm-offset-1 col-sm-2">帖子条数：<?php echo $items;?> 条</span>
			<span class = "text-info col-sm-2">每页显示： <?php echo $perpage;?> 条</span>
			<span class = "text-info col-sm-2">总共页数： <?php echo $pages;?> 页</span>
			<span class = "text-info">
				分页：&nbsp;&nbsp;<?php echo $links;?>
				<!--
				<a href="#" aria-label="Previous">
					<span aria-hidden="true">&laquo;</span>
				</a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			    <a href="#">1</a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			    <a href="#">2</a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="#">3</a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="#">4</a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="#">5</a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="#" aria-label="Next">
					<span aria-hidden="true">&raquo;</span>
				</a>
				-->
			</span>
		</div>
</div>